home *** CD-ROM | disk | FTP | other *** search
/ TeX 1995 July / TeX CD-ROM July 1995 (Disc 1)(Walnut Creek)(1995).ISO / tex-k / web2c.sunmake.help < prev    next >
INI File  |  1994-02-05  |  2KB  |  49 lines

  1. [7 Feb 1994]
  2.  
  3. Sun's Make, and perhaps others, fail to understand :: rules
  4. when VPATH is set. The fix is to comment it out (ugh).
  5. From jp107@amtp.cam.ac.uk Sun Feb  6 00:18:20 1994
  6. Date: Sun, 6 Feb 94 05:18 GMT
  7. To: unix-support@ucs.cam.ac.uk
  8. Cc: kb@cs.umb.edu
  9. Subject: .../kpathsea/Makefile.in patch
  10. From: Jon Peatfield <J.S.Peatfield@amtp.cam.ac.uk>
  11.  
  12. Hmm things just got interesting w.r.t my Make bug.  I've worked out
  13. what it objects to in the makefiles.  It will cope with target:: rules
  14. PROVIDED you don't set VPATH to anything (or it is set to ''.)
  15.  
  16. i.e. the following Makefile works:
  17.  
  18. --cut-here--
  19. # uncomment the following line and target:: rules break.
  20. # VPATH=.
  21.  
  22. test::
  23.     echo test rule1
  24. test::
  25.     echo test rule2
  26. --cut-here
  27.  
  28. but fails if you uncomment the VPATH line.  The Man page doesn't
  29. mention VPATH at all, so it SHOULD just be treated like any other
  30. variable (IMHO), but it isn't.
  31.  
  32. I've just tried this Makefile on your Solaris-2 machine (ursa) with
  33. /usr/ccs/bin/make and I get the same results.  i.e It still isn't
  34. fixed in Solaris-2 (for once ;-)
  35.  
  36. This will affect anyone trying to "make clean" after building
  37. web2c-6.* on any Sun.  It doesn't get caught by Imake Makefiles since
  38. they don't set VPATH.
  39.  
  40. KB: is it possible to put a warning in the web2c stuff warning about
  41.     the bug in Sun's Make?  In fact is VPATH used at all?
  42.  
  43. -- Jon
  44.  
  45. Jon Peatfield, Computer Officer, the DAMTP, University of Cambridge
  46. Telephone: (+44 223) 3-37852     Mail: J.S.Peatfield@amtp.cam.ac.uk
  47.  
  48. Talk to your users about PP, before someone else does!     PP: Just say NO.
  49.